#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QLineEdit>
#include <QPushButton>
#include <QLabel>
#include <QStackedWidget>
#include "elf_header_widget.h"
#include "section_header_widget.h"
#include "segment_header_widget.h"
#include "elfread.h"
class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = nullptr);
    ~MainWindow();
private:
    void initUI();
    void initConnect();
    void slotSelectFile();
    void slotDoWork();
    void slotSelectELFHeaderWIdget();
    void slotSectionHeaderWidget();
    void slotSegmentHeaderWidget();
    QLineEdit *edtFile;
    QPushButton *btnFile;
    QLabel * labFile;
    QPushButton *btnDoWork;
    QPushButton *btnELFHeader;
    QPushButton *btnELFSectionHeader;
    QPushButton *btnELFSegmentHeader;
    QStackedWidget *stackWidget;
    ELFHeaderWIdget *ElfHeaderWidget;
    SectionHeaderWidget *sectionHeaderWidget;
    SegmentHeaderWidget *segmentHeaderWidget;
    ELFRead *elfread;
};
#endif // MAINWINDOW_H
